package com.sleep.getexcel.controller;

import com.sleep.getexcel.service.KpiLabelDataService;
import com.sleep.getexcel.vo.FilePath;
import com.sleep.getexcel.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Sleep-6000
 * @date 2022/8/8
 */
@RestController
@RequestMapping("data")
public class KpiLabelDataController {
    @Autowired
    private KpiLabelDataService kpiLabelDataService;

    @PostMapping
    public Result insertData(@RequestBody FilePath filePath) {
        return kpiLabelDataService.insertData(filePath);
    }
}
